package com.dnndo.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;


/**
 * 广告实体类
 */
@Data
@TableName("advertisements")
public class Advertisement {

    /**
     * 广告ID
     */
    @TableId(value = "advertisement_id")
    private Integer advertisementId;

    /**
     * 广告名字
     */
    @TableField("advertisement_name")
    private String advertisementName;

    /**
     * 广告英文名字
     */
    @TableField("advertisement_name_en")
    private String advertisementNameEn;

    /**
     * 广告主题
     */
    @TableField("advertisement_title")
    private String advertisementTitle;

    /**
     * 广告英文主题
     */
    @TableField("advertisement_title_en")
    private String advertisementTitleEn;

    /**
     * 广告详细描述
     */
    @TableField("advertisement_describe")
    private String advertisementDescribe;

    /**
     * 广告英文详细描述
     */
    @TableField("advertisement_describe_en")
    private String advertisementDescribeEn;

    /**
     * 广告图片的链接地址
     */
    @TableField("advertisement_url")
    private String advertisementUrl;

    /**
     * 广告的分类名称
     */
    @TableField("type_name")
    private String typeName;

    /**
     * 广告的英文分类名称
     */
    @TableField("type_name_en")
    private String typeNameEn;

    /**
     * 广告创建的日期和时间
     */
    @TableField("created_at")
    private Date createdAt;

    /**
     * 广告最后修改的日期和时间
     */
    @TableField("updated_at")
    private Date updatedAt;

    /**
     * 广告的跳转地址
     */
    @TableField("advertisement_http")
    private String advertisementHttp;

    /**
     * 广告状态
     */
    @TableField("status")
    private Integer status;

    @Override
    public String toString() {
        return "Advertisement{" +
                "advertisementId=" + advertisementId +
                ", advertisementName='" + advertisementName + '\'' +
                ", advertisementNameEn='" + advertisementNameEn + '\'' +
                ", advertisementTitle='" + advertisementTitle + '\'' +
                ", advertisementTitleEn='" + advertisementTitleEn + '\'' +
                ", advertisementDescribe='" + advertisementDescribe + '\'' +
                ", advertisementDescribeEn='" + advertisementDescribeEn + '\'' +
                ", advertisementUrl='" + advertisementUrl + '\'' +
                ", typeName='" + typeName + '\'' +
                ", typeNameEn='" + typeNameEn + '\'' +
                ", createdAt=" + createdAt +
                ", updatedAt=" + updatedAt +
                ", advertisementHttp='" + advertisementHttp + '\'' +
                ", status=" + status +
                '}';
    }
}
